<template>
  <div>
    <a href="https://www.baidu.com" @click="goto">baidu</a>

    <a href="https://www.baidu.com" @click="goto2(9, $event)">baidu</a>
  </div>
</template>

<script>
export default {
  methods: {
    goto(e) {
      console.log(e);
      e.preventDefault()
    },
    goto2(n, e) {
      console.log(e);
      e.preventDefault()
    },
  },
};
</script>

<style>
</style>